package etc.spec.ytt.week5;

public class Mammal extends Animal {
    public String food;

    public Mammal(){
    }
    public Mammal(String name,String gender,int age,String food){
        this.name=name;
        this.gender=gender;
        this.age=age;
        this.food=food;
    }
    public void milk(){
        System.out.println("I drink milk when i was young!");
    }
    public static void main(String[] args){
        Mammal dxx=new Mammal("dxx","female",5,"blanna");
        dxx.born();
        dxx.eat();
        dxx.breed();
        dxx.milk();
    }
}




